package cn.anecansaitin.whimsy.common.event;

import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.entity.projectile.AbstractArrow;
import net.neoforged.neoforge.common.NeoForge;

public class ModEventHooks {
    public static void onArrowHitLivingEntity(LivingEntity enemy, AbstractArrow arrow) {
        NeoForge.EVENT_BUS.post(new ArrowHitLivingEntityEvent(enemy, arrow));
    }

    public static void onPlayerRidingTick(Player player) {
        NeoForge.EVENT_BUS.post(new PlayerRidingTickEvent(player));
    }

    public static void onPlayerHealingCompleted(Player player, float amount, float health) {
        NeoForge.EVENT_BUS.post(new PlayerHealingCompletedEvent(player, amount, health));
    }
}
